package list;

public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList<String> list=new LinkedList<>();
        list.add("Sally");
        list.add("Keely");
        list.add("李白");
        list.add("Jane");
        System.out.println("list:"+list);
//        System.out.println("size():"+list.size());
//        System.out.println("get(2):"+list.get(2));
//        System.out.println("remove(2):"+list.remove(2));
//        System.out.println("list:"+list);
        list.add(2,"Tom");
        System.out.println("list:"+list);
    }
}
